#!/bin/sh
short_release=$(lsb_release -c --short)
mv /etc/apt/sources.list /etc/apt/sources.list.bak
wget "https://gitee.com/mezhou887/portainer/raw/master/source-${short_release}.list" -O /etc/apt/sources.list
/bin/sh /usr/lib/apt/apt.systemd.daily update
apt-get update
apt-get install -y openssh-server net-tools vim zip unzip curl sendemail autojump ufw
apt-get autoremove
apt-get autoclean

ufw disable

# reboot
